/* 引入组件 配置路由 */
import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/tabbar/Home'
import Account from '../components/tabbar/Account'
import Found from '../components/tabbar/Found'
import Order from '../components/tabbar/Order'
import NewList from '../components/news/NewList'
import NewsInfo from '../components/news/NewsInfo'
import PhotoList from '../components/photos/PhotoList'
import PhotoInfo from '../components/photos/PhotoInfo'
import GoodsList from '../components/goods/GoodsList'

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/', redirect: '/home' },
    { path: '/home', component: Home },
      { path: '/home/newslist', component: NewList },
      { path: '/home/newslist/newsinfo/:id', component: NewsInfo },
      { path: '/home/photolist', component: PhotoList },
      { path: '/home/photolist/photoinfo/:id', component: PhotoInfo },
      { path: '/home/goodslist', component: GoodsList },
    { path: '/account', component: Account },
    { path: '/found', component: Found },
    { path: '/order', component: Order },

  ],
  linkActiveClass: 'mui-active', // 替换routerlink设置路由高亮的类 item-active
})